import trunk from './mock/trunk';
import { createPromise } from './util';
import Mock from 'mockjs';
export const history = (data) => {
  return createPromise(Mock.mock(trunk['history']));
}
/** 交通流量统计 */
export const trafficVolume = (data) => {
  return createPromise(Mock.mock(trunk['trafficVolume']));
}
/** 车辆密度统计 */
export const density = (data) => {
  return createPromise(Mock.mock(trunk['density']));
}
/** 通行延时统计 */
export const delay = (data) => {
  return createPromise(Mock.mock(trunk['delay']));
}
/** 拥堵指数统计 */
export const congestion = (data) => {
  return createPromise(Mock.mock(trunk['congestion']));
}
/** 通行速度统计 */
export const speed = (data) => {
  return createPromise(Mock.mock(trunk['speed']));
}
/** 通行时间统计 */
export const time = (data) => {
  return createPromise(Mock.mock(trunk['time']));
}
/** 交通流量历史值 */
export const volumeHis = (data) => {
  return createPromise(Mock.mock(trunk['volumeHis']));
}

/** 交通流量预测值 */
export const volumePre = (data) => {
  return createPromise(Mock.mock(trunk['volumePre']));
}